using Abp.Application.Services.Dto;
using Abp.AspNetCore.Mvc.Controllers;
using Batman.Cms.Domains;
using Batman.Cms.Services;
using Microsoft.AspNetCore.Mvc;

namespace Batman.Cms.Controllers
{
    public class HomeController : AbpController
    {
        public ArticleAppSvc ArticleAppSvc { get; set; }

        public ActionResult Index(PagedResultRequestDto page)
        {
            var model = ArticleAppSvc.GetArticles(page);
            return View(model);
        }
    }
}
